package com.yic.module.mes.controller.admin.processrouteinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 工艺路线详细配置 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ProcessRouteInfoBaseVO {

    @Schema(description = "工艺路线", requiredMode = Schema.RequiredMode.REQUIRED, example = "487")
    @NotNull(message = "工艺路线不能为空")
    private Long routeId;

    @Schema(description = "当前工序", requiredMode = Schema.RequiredMode.REQUIRED, example = "29465")
    @NotNull(message = "当前工序不能为空")
    private Long processId;

    @Schema(description = "下道工序", example = "10962")
    private Long nextProcessId;

    @Schema(description = "顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer subsequence;

    @Schema(description = "与下道工序关系", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "与下道工序关系不能为空")
    private Integer link;

    @Schema(description = "是否为关键工序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否为关键工序不能为空")
    private Integer mainProcess;

    @Schema(description = "备注", example = "你猜")
    private String remark;

}
